package com.sright.bcard.user.biz.service;

import com.sright.bcard.user.biz.manager.AdminManager;
import com.sright.bcard.user.share.service.AdminService;
import com.sright.common.response.SrightResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminManager adminManager;

    @Override
    public SrightResponse updateAdminPassword(String oldPassword, String newPassword, Long userId) {
        return SrightResponse.defaultSuccess(adminManager.updateAdminPassword(oldPassword, newPassword, userId));
    }
}
